package com.itheima.app;


import com.itheima.dao.UserDao;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class AppForInstanceUser {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml");
        UserDao U = (UserDao)ctx.getBean("userDao");
        U.save();
    }
}
